package com.ruoyi.api.kehu;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.JiajiaHomeActivity;
import com.ruoyi.system.service.IJiajiaHomeActivityService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 首页活动信息Controller
 * 
 * @author ruoyi
 * @date 2025-03-07
 */
@RestController
@RequestMapping("/api/kehu/JiajiaHomeActivity")
public class ApiJiajiaHomeActivityController extends BaseController {

    @Autowired
    private IJiajiaHomeActivityService jiajiaHomeActivityService;



    /**
     * 修改首页活动信息
     */
    @GetMapping("/getInfo")
    public AjaxResult getInfo() {
        JiajiaHomeActivity jiajiaHomeActivity = jiajiaHomeActivityService.selectJiajiaHomeActivityById(1L);
        return AjaxResult.success(jiajiaHomeActivity);
    }
}
